﻿#pragma once
#include "InputEventHandle.h"
#include <list>

namespace DYEngine
{
	class Input
	{
	public:
		static void AddEvent(InputEventHandle* pHandle);
		static void RemoveEvent(InputEventHandle* pHandle);
		static void ScreenSizeChange(int w, int h);
		static void CursorMove(float x, float y);
		static void KeyPress(int key, int action);
		static void MouseButtonPress(int key, int action);
		static void ScrollEvent(float xoffset, float yoffset);
		static void Emit();

		static void GetCursorPos(float& x, float& y);
	};
}
